﻿ /*------------------------------------------------------------------
-- COPYRIGHT (C) 2010-2012  Atom
-- ALL RIGHTS RESERVED.
-- 兆尹科技
-- CREATE DATE: 2010/07/12
-- CREATE MAN:	姜新军
--实体类基类
-- MODIFY HISTORY:
-- MODIFY DATE:
-- MODIFY MAN:	
-- MODIFY DESC:
-- MODIFY DATE:
-- MODIFY MAN:	
-- MODIFY DESC:
---------------------------------------------------------------------*/
using System;

namespace Atom.Entity
{
    /// <summary>
    /// 实体类基类
    /// </summary>
    [Serializable]
    public abstract class BaseEntity
    {
        internal DateTime? GetDatePart(DateTime? date)
        {
            if (date.HasValue)
            {
                date = date.Value.Date;
            }
            return date;
        }
    }
}
